<template>
  <div id="app">
    <router-view />
    <theme-picker />
  </div>
</template>

<script>
import ThemePicker from "@/components/ThemePicker";

export default {
  name: "App",
  components: { ThemePicker },
  metaInfo() {
    return {
      title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
      titleTemplate: title => {
        return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
      }
    }
  }
};
</script>
<style lang="scss">
#app .theme-picker {
  display: none;
}

#app {
  font-size: 14px;
  font-family: '微软雅黑';
}

body::-webkit-scrollbar {
  display: none;
  /* Chrome Safari */
}

//tab切换样式
.tab-list {
  margin-left: 12px;

  .item {
    padding: 14px 27px;
    margin: 0 5px;
    background: #e1e1e1;
    color: #39393c;
    border-radius: 8px 8px 0 0;
    transition: all .3s;
    cursor: pointer;
    height: 46px;
    font-size: 14px;
    position: relative;

    span {
      position: relative;
      z-index: 9;
    }

    i {
      display: block;
      width: 0;
      height: 9px;
      border-radius: 2px;
      background-color: #ffdd03;
      position: absolute;
      z-index: 2;
      bottom: 10px;
      left: 50%;
      transform: translateX(-50%);
      opacity: 0;
    }
  }

  .item:hover {
    background: #fff;

    i {
      width: 57px;
      opacity: 1;
      transition: width .3s ease-in-out;
    }
  }

  .active {
    background: #fff;
    color: #333336;
    font-size: 15px;
    font-weight: bold;

    i {
      opacity: 1;
      width: 57px;
    }
  }
}

//容器样式
.box {
  background-color: #fff;
  padding: 20px 20px 60px 20px;
  border-radius: 12px;
  overflow-y: hidden;

  .el-tree-node__content {
    height: 76px !important;
  }

  .el-upload-dragger {
    width: 200px;

  }

  .ql-container {
    min-height: 400px;
  }

  // .is-focusable{
  //   background: #F9F9F9;
  // }
  // .is-current{
  //   background: #FFFCE6 !important;
  // }
  .el-range-editor--small .el-range-separator {
    line-height: 32px !important;
  }
}

//自定义按钮样式
.el-button.btn {
  display: inline-block;
  background-color: #ffdd03;
  border: 1px solid #ffdd03;
  color: #333336;
  font-size: 14px;
  border-radius: 20px;
  padding: 12px 20px;
}

.el-button.btn:hover {
  color: #333336;
  background-color: #FFD100;
  border: 1px solid #FFD100;
}

.el-button.btn-plain {
  border: 1px solid #d9d9d9;
  background-color: #fff !important;
  color: #595959 !important;
  border-radius: 40px;
  padding: 12px 15px;
  font-size: 14px;
}

.el-button.btn-plain:hover {
  border: 1px solid #333336;
}

.el-button.btn-disable {
  color: #595959 !important;
  background: #f4f4f5 !important;
  border: 1px solid #e9e9eb !important;
  border-radius: 40px;
  padding: 12px 15px;
  font-size: 14px;
}

.el-button.btn-plain:hover {
  border: 1px solid #333336;
}

//自定义输入框样式
.input {
  .el-input__inner {
    height: 40px !important;
    line-height: 40px !important;
    border: 1px solid #dcdfe6;
    padding: 0 15px;
    border-radius: 20px !important;
  }

  .el-input-group__prepend {
    color: #333336;
    background-color: #fff;
    border-radius: 20px 0 0 20px;
  }
}

.input-radius {
  .el-input__inner {
    border-radius: 0 20px 20px 0 !important;
  }
}

.input-radius-right {
  .el-input__inner {
    border-radius: 20px 0 0 20px !important;
  }

  .el-input-group__append {
    border-radius: 0 20px 20px 0 !important;
    background: #fff;
  }
}

//复选框样式
.is-checked {
  .el-checkbox__label {
    color: #333336 !important;
  }
}

//图标样式
// .el-icon-question{
//   color: #FFE000 !important;
// }
//弹窗按钮样式
.center {
  .el-dialog__footer {
    text-align: center;
    padding: 0 20px 20px;
  }

  .el-dialog__body {
    padding: 30px 20px 0;
  }
}

.noPadding {
  .el-dialog {
    padding-bottom: 20px;
  }

  .el-dialog__body {
    padding: 10px 20px 0;
  }
}

//自定义flex
.flex {
  display: flex;
  flex-direction: row;
}

.flex-a {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.flex-b {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.flex-d {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

//隐藏样式
.hidden {
  overflow: hidden;
}

// margin样式
.mr-60 {
  margin-right: 60px !important;
}

.mb-50 {
  margin-bottom: 50px !important;
}

//下拉菜单
.dropdown {
  position: relative;
  top: 15px;
  border-radius: 20px;
  text-align: left;
  background-color: transparent;
  color: #333336;
  border: 1px solid #dedede;
  padding: 12px 20px;
  font-size: 14px;

  .el-icon-arrow-down {
    padding-left: 80px;
  }
}

.el-dropdown-menu--medium .el-dropdown-menu__item {
  text-align: center;
  padding: 0 17px;
  font-size: 14px;
  box-sizing: border-box;
  white-space: nowrap;
  width: 200px;
}

.dropdown>.el-dropdown-menu {
  left: 240px !important;
  width: 195px !important;
}

.el-dropdown-menu__item:hover {
  background: #F9F9F9 !important;
  color: #606266 !important;
}

.dropdown:hover {
  cursor: pointer;
}

//表格样式
.grey {
  border-radius: 5px 5px 0 0;
}

.grey th {
  background: #F9F9F9 !important;
}

.grey-back {
  background: #F9F9F9 !important;
}

.table p {
  display: inline-block;
  margin: 0;
  color: #F86475;
  font-size: 16px;
}

.table .el-input-group__prepend {
  padding: 0 8px;
}

//上传样式
.avatar-uploader .el-upload {
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.avatar-uploader .el-upload:hover {
  border-color: #409EFF;
}

.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 100px;
  height: 100px;
  line-height: 100px !important;
  text-align: center;
}

.avatar {
  width: 100px;
  height: 100px;
  display: block;
}

//统计样式
.stock-total {
  font-size: 14px;
  color: #926a61;
  margin: 10px 0;

  span {
    color: #e93f45;
    font-weight: 700;
  }

  .bank {
    padding: 0 15px;
  }
}

.buyDialog {
  position: relative;

  .el-dialog__header {
    display: none;
  }

  .el-dialog__body {
    padding: 0;
  }

  .tab-list {
    position: absolute;
    top: -45px;
  }

  .el-card__body {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px;
    width: 100%;
  }

  .el-card:hover {
    box-shadow: 0 0 4px #FFDD03 !important;
    border-color: #FFDD03;
    cursor: pointer;
  }

  .el-card.active {
    background: #FFDD03;
  }

  .el-tag {
    margin-right: 10px;
    background-color: #ffd100 !important;
    border-color: #ffd100 !important;
    color: #333336 !important;

    i {
      color: #333336 !important;
    }

    i:hover {
      background: #fff !important;
    }
  }

  .pagination-container {
    background: transparent !important;
  }
}

// 公告通知弹窗样式
.news-dialog {
  .el-dialog {
    border-radius: 10px;
  }

  .el-dialog__header {
    width: 100%;
    height: 8%;
    background: linear-gradient(228deg, #fff372, #fdcf05);
    border-radius: 10px 10px 0 0;
    position: relative;
    padding-left: 3%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
  }

  .content {
    font-size: 18px;
    line-height: 30px;
    color: #606266;
    height: 250px;
    overflow-y: auto;
  }

  .content::-webkit-scrollbar {
    display: none;
  }
}

.none {
  .el-input__inner {
    border: none;
    text-align: right;
    color: #666;
    font-size: 22px;
    font-weight: bold;
  }
}

.foster-pet {
  .el-form-item__label {
    vertical-align: text-bottom;
  }
}
</style>
